﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 115px;
        }
        .style2
        {
            width: 187px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <h2>
            Order Details</h2>
        <p>
            <table style="width:100%;">
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label1" runat="server" Text="OrderID :"></asp:Label>
                    </td>
                    <td class="style2">
                        <asp:TextBox ID="txtOrderID" runat="server" Width="189px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        Full Name :</td>
                    <td class="style2">
                        <asp:TextBox ID="txtFullName" runat="server" Width="187px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valFullName" runat="server" 
                            ControlToValidate="txtFullName" ErrorMessage="Please enter Full Name" 
                            ForeColor="#FF3300">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Address :</td>
                    <td class="style2">
                        <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Width="185px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valAddress" runat="server" 
                            ControlToValidate="txtAddress" ErrorMessage="Please enter Address" 
                            ForeColor="#FF3300">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        City :</td>
                    <td class="style2">
                        <asp:TextBox ID="txtCity" runat="server" Width="184px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valCity" runat="server" 
                            ControlToValidate="txtCity" ErrorMessage="Please enter City" 
                            ForeColor="#FF3300">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        State/Country :</td>
                    <td class="style2">
                        <asp:TextBox ID="txtState" runat="server" Width="183px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valState" runat="server" 
                            ControlToValidate="txtState" ErrorMessage="Please enter State" 
                            ForeColor="#FF3300">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Phone Number :</td>
                    <td class="style2">
                        <asp:TextBox ID="txtPhoneNumber" runat="server" Width="180px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="valPhoneNumber" runat="server" 
                            ControlToValidate="txtPhoneNumber" ErrorMessage="Please enter Phone Number" 
                            ForeColor="#FF3300">*</asp:RequiredFieldValidator>
&nbsp;<asp:RegularExpressionValidator ID="valPhoneNumberFormat" runat="server" 
                            ControlToValidate="txtPhoneNumber" ErrorMessage="Not Valid" ForeColor="#FF3300" 
                            ValidationExpression="^[0-9]+$">*</asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        E-mail Address :</td>
                    <td class="style2">
                        <asp:TextBox ID="txtEmail" runat="server" Width="181px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;<asp:RequiredFieldValidator ID="valEmail" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="Please enter Email" 
                            ForeColor="#FF3300">*</asp:RequiredFieldValidator>
&nbsp;<asp:RegularExpressionValidator ID="valEmailFormat" runat="server" ControlToValidate="txtEmail" 
                            ErrorMessage="Not Valid" ForeColor="#FF3300" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        Payment Mode :</td>
                    <td class="style2">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:RadioButtonList ID="rdbPaymentMode" runat="server">
                            <asp:ListItem Selected="True">Check</asp:ListItem>
                            <asp:ListItem>Credit Card</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td class="style2">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Button ID="btnNext" runat="server" onclick="btnNext_Click" Text="Next" />
                        <asp:Button ID="btnReset" runat="server" CausesValidation="False" 
                            onclick="btnReset_Click" Text="Reset" />
                    </td>
                    <td class="style2">
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </p>
    
    </div>
    <asp:ValidationSummary ID="valSummaryOrderDetails" runat="server" 
        ForeColor="#FF3300" />
    </form>
</body>
</html>
